package com.SinaMicroblogging.Extension;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView;

import com.SinaMicroblogging.*;

public class ImageAdapter extends BaseAdapter {

	private Context context;
	private Integer[] images = { R.drawable.bg, R.drawable.bg,R.drawable.bg };

	public ImageAdapter(Context context) {

		this.context = context;
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		//ImageView imageView = new ImageView(context);
		//imageView.setImageResource(images[position]);
		//imageView.setLayoutParams(new Gallery.LayoutParams(32, 32));
		//imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);

		return null;
	}

	public int getCount() {
		return images.length;
	}
}
